package net.gz01.wallet.web.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;

import net.gz01.wallet.web.model.base.BaseUserSettings;

@SuppressWarnings("serial")
public class UserSettings extends BaseUserSettings<UserSettings>{

	public static final UserSettings dao = new UserSettings().dao();

	public List<UserSettings> selectByUser(Integer userId) {
		return super.find("select * from user_settings where userId=?", userId);
	}

	public void deleteByUser(Integer userId, String key) {
		Db.delete("delete from user_settings where userId=? and funcKey=?", userId, key);
	}
	
	
}
